﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace OrderAggregator.InputFormats
{
    /// <summary>
    /// Заказ
    /// </summary>
    public class BaseOrder
    {
        private readonly List<BaseOrderRow> _orderRows = new List<BaseOrderRow>();


        /// <summary>
        /// Номер, ид-р заказа
        /// </summary>
        public string Id
        {
            get; set;
        }

        /// <summary>
        /// Дата-время получения
        /// </summary>
        public DateTime ReceiveTime
        {
            get; set;
        }

        /// <summary>
        /// Заказчик
        /// </summary>
        public string Client
        {
            get; set;
        }

        /// <summary>
        /// Позиции заказа
        /// </summary>
        public List<BaseOrderRow> OrderRows
        {
            get { return _orderRows; }
        }

        public override string ToString()
        {
            return Id + "; " + Client;
        }
    }
}
